module ois.prereqs;

import std.typecons;
import dogre.internals.utils;
import std.string;

extern(C)
{
    void* get_stringstring_mm();
    void call_stringstring_mm_insert(void* ptrToWrapper, const(char)* x, const(char)* y);
}

enum
{
	OISUnknown   = 0,
	OISKeyboard  = 1,
	OISMouse     = 2,
	OISJoyStick  = 3,
	OISTablet    = 4
}
alias int Type;

class ParamList
{
    mixin(Wrapper);
    this()
    {
        p = get_stringstring_mm();
    }
    void insert(string x, string y)
    {
        call_stringstring_mm_insert(p, toStringz(x), toStringz(y));
    }
}